from turtledemo.minimal_hanoi import hanoi
class Hanoi:
    def hanoi(self,n, a,b,c,):

        if n > 0:
            self.hanoi(n -1,a,c, b)
            print(f'moving from {a} to {c}')
            self.hanoi(n -1,b,a,c)
if __name__ == '__main__':
    hanoi = Hanoi()
    hanoi.hanoi(3,'A','B','C')